package com.example.gbtdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * app用户表
 * </p>
 *
 * @author 刘泽
 * @since 2023-01-13 12:21:05
 */
@Getter
@Setter
@TableName("app_user")
@ApiModel(value = "AppUser对象", description = "app用户表")
public class AppUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("性别（0-男  ： 1-女）")
    @TableField("gender")
    private Byte gender;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("年龄")
    @TableField("age")
    private Byte age;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;
}
